#include "StdAfx.h"
#include "MeshInstance.h"
#include "Mesh.h"

#include "MaterialInstance.h"

using namespace RenderSystem;

//////////////////////////////MeshInstance//////////////////////////////
MeshInstance::MeshInstance( const String& strMeshId, Mesh* pResMesh )
	:Instance( strMeshId, pResMesh )
{
}

MeshInstance::~MeshInstance(void)
{
}

//////////////////////////////SubMeshInstance//////////////////////////////
SubMeshInstance::SubMeshInstance( MeshInstance* pMeshInstance )
	:m_pMaterialInstance( NULL ), m_pSubMesh( NULL ), m_pMeshInstance( pMeshInstance )
{
}


MeshInstance* SubMeshInstance::GetOwner( void ) const
{
	return m_pMeshInstance;
}

MaterialInstance* SubMeshInstance::GetMaterialInstance( void ) const
{
	return m_pMaterialInstance;
}

